#ifndef HANDLEAUDIO_H
#define HANDLEAUDIO_H

#include <QDebug>
#include <QThread>
#include <QByteArray>
#include <QQueue>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QJsonDocument>
#include <QJsonParseError>

class HandleAudio : public QObject
{
Q_OBJECT
public:
    HandleAudio(QString &prefix, QString &id);

signals:
    void readSessionID(void);

public slots:
    void slotReplyFromServer(QNetworkReply * reply);
    void slotSendPost(const QByteArray qba);

public:
    void setHander(QString &prefix,QString &id);

    QNetworkRequest request;
    QNetworkAccessManager * manager;
    QString session_id;
};

#endif // HANDLEAUDIO_H
